@import "https://fonts.googleapis.com/css?family=Source+Sans+Pro:100,300,400,600";
@import "https://fonts.googleapis.com/css?family=Noto+Serif+SC:100,300,400,600";
@import "https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,700&display=swap&subset=chinese-simplified";
@import "base.css";
* {
    padding: 0 ;
    margin: 0 ;
}
body {
    width: 100% ;
    display: flex;
    flex-direction: row;
    justify-content:flex-end;
    opacity: 1 ;
    &::before{
        content:"";
        top: 0 ;
        left: 0 ;
        bottom: 0 ;
        right: 0 ;
        opacity: 0.06 ;
        position: fixed ;
        background: center/cover no-repeat ;
        background-image: url("../img/indexBackground.png");
    }
}
.extra-box{
    position: fixed;
    left: 10vw;
    bottom: 30vh ;
    height: auto ;
    width: auto ;
    transform-style: preserve-3d;
    transition: 0.5s ;
    z-index: 1 ;
    .acticle-title{
        height: auto ;
        width: auto ;
        //background-color: red ;
        border-right: solid 2px #2f3542;
        font-family: "Noto Serif SC","HiraMinProN-W6","Source Han Serif CN","Source Han Serif SC","Source Han Serif TC",serif;
        writing-mode: vertical-rl;
        padding-bottom: 10px ;
        padding-top: 10px ;
        font-size: 32px ;
        line-height: 60px ;
        font-weight: 900 ;
        line-height: 2.2em ;
        color: #2f3542 ;
        backface-visibility: hidden ;
        transition: 0.5s ;
        user-select: none ; 
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08); 
        .roteZInf5S{
            width: 1.5em; 
            height: 1.5em;
            position: absolute;
            left: -20px ;
            top: -20px ;
            font-size: 20px ;
            display: block;
            transform:  rotateZ(0deg);
            animation-name: roteZInf;
            animation-duration: 5s;
            animation-delay: 0s;
            animation-play-state: running;
            animation-iteration-count: infinite ;
            animation-timing-function: ease-in-out;
        }
        &:hover{
            background: #2d3436 ;
            border-right: solid transparent  2px;
            color: #f1f2f6 ; 
        }
    }
    .acticle-nav{
        position: absolute;
        box-sizing: border-box; 
        top: 0 ;
        left: -80px ;
        width: auto ;
        height: auto ;
        transition: 0.5s ;
        border-left: solid 2px #2f3542 ;
        backface-visibility: hidden ;
        transform: rotateY(180deg);
        padding-left: 5px ;
        padding-bottom: 10px ;
        list-style: none ;
        a{
            color: rgba(87, 96, 111,1.0) ;
            text-shadow: 0px 0px 2px rgba(87, 96, 111,0.3) ;
            text-decoration: none;
            position: relative;
            transition:0.3s ;
            &::after{
                content:"";
                position: absolute;
                left: 0 ;
                top: 0 ;
                width: 110% ;
                height: 120% ;
                background: rgba(47, 53, 66,1.0) ;
                transform: scaleX(0);
                transition:0.3s ;
                transform-origin: left;
                z-index: -1 ;
            }
            &:hover{
                color: #ffffff ;
            }
            &:hover::after{
                 transform: scaleX(1);
            }
        }
        ul{
            list-style: none;
        }
        .roteZInf5S{
            width: 1.5em; 
            height: 1.5em;
            position: absolute;
            right: 20px ;
            top: -30px ;
            font-size: 20px ;
            display: block;
            transform:  rotateZ(0deg);
            animation-name: roteZInf;
            animation-duration: 5s;
            animation-delay: 0s;
            animation-play-state: running;
            animation-iteration-count: infinite ;
            animation-timing-function: ease-in-out;
        }
        li{
            font-family: "Josefin Sans Light",-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","'Hiragino Sans GB",STHeiti,"Microsoft Yahei","Source Han Sans SC","Noto Sans CJK SC","WenQuanYi Micro Hei",Arial,Verdana,sans-serif;
            color: #2f3542;
            margin-top: 5px ;
            margin-left: 10px ;
            white-space:nowrap ;
            cursor: pointer;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
            position: relative; 
        }
    }
}
main {
    position: relative ;
    top:10px ;
    flex: 1 ;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    align-items: flex-end;
    min-width: 700px ;
    .placeHolder{
        min-height: 50px ;
    }
    .top-container{
        position: relative;
        width: 75% ;
        max-width: 75% ;
        min-height: 400px ;
        max-height: 400px ;
        //background-color: red ;
        box-shadow: 0px 0px 5px black ;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        &::before{
            content:"";
            position: absolute;
            top: -55px ;
            width: 750px ;
            height: 70px ;
            left: 50% ;
            margin-left: -375px ;
            background: url("../img/spr-1.png") no-repeat;
            z-index: -1 ;
        }
        &::after{
            content:"";
            position: absolute;
            bottom: -55px ;
            width: 750px ;
            height: 70px ;
            left: 50% ;
            margin-left: -375px ;
            background: url("../img/spr-2.png") no-repeat;
            z-index: -1 ;
        }
        .time-stamp{
            position: absolute;
            top: -30px ;
            left: 10px ;
            user-select: none;
            white-space:nowrap ;
            #site-time{
                margin-left: 30px ;
                font-size: 0.7em ;
                font-weight: 400 ;
                letter-spacing: 1.5px ;
                color: #636e72 ;
            }
        }
        .post-meta{
            position: absolute;
            bottom: -35px ;
            right: 30px ;
            width: auto;
            user-select: none;
            letter-spacing: 1.2px ;
            font-size: 0.7em ;
            font-family: "Josefin Sans Light",-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","'Hiragino Sans GB",STHeiti,"Microsoft Yahei","Source Han Sans SC","Noto Sans CJK SC","WenQuanYi Micro Hei",Arial,Verdana,sans-serif;
            color: #2f3542 ;
            a{
                color: #2f3542 ;
            }
            .post-cate{
                text-decoration: underline;
            }
            .post-tag{
                margin-left: 5px ;
                text-decoration: underline;
            }
        }
        .acticle-pic{
            position: absolute;
            width: 100% ;
            height: 100% ;
            overflow: hidden;
            background-size: cover ;
            background-position: center;
        }
    }
    .main-container{
        max-width: 75% ;
        min-width: 75% ;
        display: flex;
        flex: 1 ;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap:wrap;
        margin-top: 10px ;
        transition: 0.5s ;
        font-family: "Josefin Sans Light",-apple-system,BlinkMacSystemFont,"Helvetica Neue","PingFang SC","'Hiragino Sans GB",STHeiti,"Microsoft Yahei","Source Han Sans SC","Noto Sans CJK SC","WenQuanYi Micro Hei",Arial,Verdana,sans-serif;
        .card{
            position: relative;
            margin: 10px ;
            box-sizing: border-box; 
            .face{
                position: absolute;
                box-sizing: border-box;
                top:0;
                left:0;
                width: 100% ;
                height: 100% ;
                transition: 0.5s ;
                //border: solid 8px rgba(241, 242, 246,1.0) ;
                box-shadow: 0px 0px 5px #2d3436 ;
            }
            .face.face1{
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                z-index: 1 ;
                transform-origin: bottom;
                cursor: pointer; 
                .content {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    img{
                        width: 80px ;
                        box-shadow: 0px 0px 5px #2d3436 ;
                    }
                    a{
                        text-decoration: none;
                        color: #2d3436;
                    }
                    h3{
                        margin: 10px 0 0 ;
                        color: #2d3436;
                        text-align: center;
                        font-size: 1em ;
                        font-weight: 300;
                        letter-spacing: 1.5px ;
                        text-shadow: 0px 0px 5px rgba(47, 53, 66,0.3) ;
                    }
                }
                &:hover a{
                    color: #f1f2f6 ;
                }
                &:hover h3{
                    color: #f1f2f6 ;
                }
            }
            .face.face2{
                display: flex;
                justify-content: center;
                align-items: center;
                flex-wrap:wrap;
                margin: 0 ;
                padding: 10px ;
                transform-origin: top ;
                overflow: hidden;
                opacity: 0 ;
                text-decoration: none;
                color: rgba(44, 62, 80,1.0) ;
                p{
                    font-size: 15px ;
                    line-height: 1.5em ;
                    font-size: 0.8em ;
                    text-shadow: 0px 0px 5px rgba(47, 53, 66,0.3) ;
                }
            }
        }
        .card1{
            position: relative;
            width: 200px ;
            height: 150px ;
            .face.face2{
                transform: translateY(100%) rotateX(90deg) ;
            }
            &:hover .face.face1{
                transform: translateY(-100%) rotateX(90deg) ;
                background: #2d3436 ;
            }
            &:hover .face.face2{
                transform: translateY(0%) rotateX(0deg) ;
                 opacity: 1 ;
            }
        }
        .card2{
            position: relative;
            width: 150px ;
            height: 150px ;
            &:hover .face.face1{
                transform: translateY(-50%) ;
                background: #2d3436 ;
                color: #f1f2f6 ;
            }
            &:hover .face.face2{
                transform: translateY(50%);
                opacity: 1 ;
                z-index: 2 ;
                background: #f1f2f6 ; 
            }
        }
        .card3{
            position: relative;
            width: 200px ;
            height: 150px ;
            .face2 .content{
                padding-left: 50px ;
            }
            &:hover .face.face1{
                transform: translate(-50%,-25%) scale(50%);
                background: #2d3436 ;
            }
            &:hover .face.face2{
                opacity: 1 ;

            }
        }
    }

}

